from django.db import models

class Story(models.Model):
  title = models.CharField(max_length=20)
  description = models.TextField()
  category = models.CharField(max_length=20)
  url = models.CharField(max_length=100)
  img_url = models.CharField(max_length=100, blank=True)
  date_time = models.DateTimeField()
  priority = models.IntegerField()
  source = models.CharField(max_length=20)
  
  class Admin:
    pass
    
  class Meta:
    verbose_name = "Story"
    verbose_name_plural = "Stories"
  
  def __str__(self):
    return self.title
  